package com.yltrcc.blog.generate.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName blog_user
 */
@TableName(value ="blog_user")
public class BlogUser implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer userId;

    /**
     * 是否禁用登录
     */
    private String loginEnable;

    /**
     * 登录失败次数
     */
    private Integer loginError;

    /**
     * 最后登录时间
     */
    private Date loginLastTime;

    /**
     * 头像
     */
    private String userPortrait;

    /**
     * 说明
     */
    private String userExplain;

    /**
     * 显示名称
     */
    private String userDisplayName;

    /**
     * 邮箱
     */
    private String userEmail;

    /**
     * 用户名
     */
    private String userName;

    /**
     * 密码
     */
    private String userPwd;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * 
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * 是否禁用登录
     */
    public String getLoginEnable() {
        return loginEnable;
    }

    /**
     * 是否禁用登录
     */
    public void setLoginEnable(String loginEnable) {
        this.loginEnable = loginEnable;
    }

    /**
     * 登录失败次数
     */
    public Integer getLoginError() {
        return loginError;
    }

    /**
     * 登录失败次数
     */
    public void setLoginError(Integer loginError) {
        this.loginError = loginError;
    }

    /**
     * 最后登录时间
     */
    public Date getLoginLastTime() {
        return loginLastTime;
    }

    /**
     * 最后登录时间
     */
    public void setLoginLastTime(Date loginLastTime) {
        this.loginLastTime = loginLastTime;
    }

    /**
     * 头像
     */
    public String getUserPortrait() {
        return userPortrait;
    }

    /**
     * 头像
     */
    public void setUserPortrait(String userPortrait) {
        this.userPortrait = userPortrait;
    }

    /**
     * 说明
     */
    public String getUserExplain() {
        return userExplain;
    }

    /**
     * 说明
     */
    public void setUserExplain(String userExplain) {
        this.userExplain = userExplain;
    }

    /**
     * 显示名称
     */
    public String getUserDisplayName() {
        return userDisplayName;
    }

    /**
     * 显示名称
     */
    public void setUserDisplayName(String userDisplayName) {
        this.userDisplayName = userDisplayName;
    }

    /**
     * 邮箱
     */
    public String getUserEmail() {
        return userEmail;
    }

    /**
     * 邮箱
     */
    public void setUserEmail(String userEmail) {
        this.userEmail = userEmail;
    }

    /**
     * 用户名
     */
    public String getUserName() {
        return userName;
    }

    /**
     * 用户名
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * 密码
     */
    public String getUserPwd() {
        return userPwd;
    }

    /**
     * 密码
     */
    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BlogUser other = (BlogUser) that;
        return (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getLoginEnable() == null ? other.getLoginEnable() == null : this.getLoginEnable().equals(other.getLoginEnable()))
            && (this.getLoginError() == null ? other.getLoginError() == null : this.getLoginError().equals(other.getLoginError()))
            && (this.getLoginLastTime() == null ? other.getLoginLastTime() == null : this.getLoginLastTime().equals(other.getLoginLastTime()))
            && (this.getUserPortrait() == null ? other.getUserPortrait() == null : this.getUserPortrait().equals(other.getUserPortrait()))
            && (this.getUserExplain() == null ? other.getUserExplain() == null : this.getUserExplain().equals(other.getUserExplain()))
            && (this.getUserDisplayName() == null ? other.getUserDisplayName() == null : this.getUserDisplayName().equals(other.getUserDisplayName()))
            && (this.getUserEmail() == null ? other.getUserEmail() == null : this.getUserEmail().equals(other.getUserEmail()))
            && (this.getUserName() == null ? other.getUserName() == null : this.getUserName().equals(other.getUserName()))
            && (this.getUserPwd() == null ? other.getUserPwd() == null : this.getUserPwd().equals(other.getUserPwd()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getLoginEnable() == null) ? 0 : getLoginEnable().hashCode());
        result = prime * result + ((getLoginError() == null) ? 0 : getLoginError().hashCode());
        result = prime * result + ((getLoginLastTime() == null) ? 0 : getLoginLastTime().hashCode());
        result = prime * result + ((getUserPortrait() == null) ? 0 : getUserPortrait().hashCode());
        result = prime * result + ((getUserExplain() == null) ? 0 : getUserExplain().hashCode());
        result = prime * result + ((getUserDisplayName() == null) ? 0 : getUserDisplayName().hashCode());
        result = prime * result + ((getUserEmail() == null) ? 0 : getUserEmail().hashCode());
        result = prime * result + ((getUserName() == null) ? 0 : getUserName().hashCode());
        result = prime * result + ((getUserPwd() == null) ? 0 : getUserPwd().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", userId=").append(userId);
        sb.append(", loginEnable=").append(loginEnable);
        sb.append(", loginError=").append(loginError);
        sb.append(", loginLastTime=").append(loginLastTime);
        sb.append(", userPortrait=").append(userPortrait);
        sb.append(", userExplain=").append(userExplain);
        sb.append(", userDisplayName=").append(userDisplayName);
        sb.append(", userEmail=").append(userEmail);
        sb.append(", userName=").append(userName);
        sb.append(", userPwd=").append(userPwd);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}